package com.dhecp.project.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 邮件系统实体
 * @author DH-Xxj
 * @version 2020年9月18日
 */
public class MailContent  implements Serializable{
    private static final long serialVersionUID = 1L;

	private String guid;		//行Guid
	private String pGuid;		//原邮件行Guid（邮件主表）、邮件行Guid（收件人从表）
	private String replyGuid;	//回复-原收件人行Guid（主表保存字段）
	private String mailGuid;	//邮件行Guid（虚拟字段，统一主从表字段名）
	private String mailType;	//邮件状态（已收件、已发送、草稿、撤销）
	private String mailSource;	//邮件来源（收件箱、发件箱、草稿箱、已撤销）
	private Boolean deleted;	//删除标记
	private Boolean deletedSup;	//彻底删除标记
	private Boolean important;	//重要邮件
	private Boolean perpetual;	//保留邮件
	private String urgentDegree;//紧急程度
	private String mailLabel;	//邮件标签
	private Integer recNumber;		//收件人数
	private Boolean readed;			//已读标记
	private Integer readNumber;		//已读人数
	private Integer replyNumber;	//回复人数
	private Integer replyFrequency;	//回复人次、回复次数
	private String fromUser;		//发件人工号
	private String fromDept;		//发件人部门路径
	private String fromCid;			//发件人公司编码
	private String fromUserName;	//发件人姓名
	private String fromDeptName;	//发件人部门
	private String fromCidName;		//发件人公司
	private String toUser;		//收件人类型编码（多人组装字符串，如：[user]1001;[user]1002;[user]1003;[dept]D121;[company]C101）
	private String toUserName;	//收件人（多人组装字符串，分号分隔，如：张三;李四）
	private String ccUser;		//抄送类型编码（多人组装字符串，如：[user]1001;[user]1002;[user]1003;[dept]D121;[company]C101）
	private String ccUserName;	//抄送（多人组装字符串，分号分隔，如：张三;李四）
	private String scUser;		//密送类型编码（多人组装字符串，如：[user]1001;[user]1002;[user]1003;[dept]D121;[company]C101）
	private String scUserName;	//密送（多人组装字符串，分号分隔，如：张三;李四）
	private String recUser;		//收件人工号
	private String recDept;		//收件人部门路径
	private String recCid;		//收件人公司编码
	private String recUserName;	//收件人姓名
	private String recDeptName;	//收件人部门
	private String recCidName;	//收件人公司
	private String recType;		//收件人类型
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;	//创建时间
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date sendTime;		//发送时间
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private Date readTime;		//阅读时间
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedTime;	//删除时间
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedSupTime;//彻底删除时间
	private String mailSubject;	//主题
	private String fileMark;	//附件关联
	private String mailContent;	//正文
	
	private String vHFilesDefault;	//附件，虚拟字段
	
	public String getGuid() {
		return guid;
	}
	public void setGuid(String guid) {
		this.guid = guid;
	}
	public String getpGuid() {
		return pGuid;
	}
	public void setpGuid(String pGuid) {
		this.pGuid = pGuid;
	}
	public String getReplyGuid() {
		return replyGuid;
	}
	public void setReplyGuid(String replyGuid) {
		this.replyGuid = replyGuid;
	}
	public String getMailGuid() {
		return mailGuid;
	}
	public void setMailGuid(String mailGuid) {
		this.mailGuid = mailGuid;
	}
	public String getMailType() {
		return mailType;
	}
	public void setMailType(String mailType) {
		this.mailType = mailType;
	}
	public String getMailSource() {
		return mailSource;
	}
	public void setMailSource(String mailSource) {
		this.mailSource = mailSource;
	}
	public Boolean getDeleted() {
		if (deleted == null){
			return false;
		}
		return deleted;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public Boolean getDeletedSup() {
		if (deletedSup == null){
			return false;
		}
		return deletedSup;
	}
	public void setDeletedSup(Boolean deletedSup) {
		this.deletedSup = deletedSup;
	}
	public Boolean getImportant() {
		if (important == null){
			return false;
		}
		return important;
	}
	public void setImportant(Boolean important) {
		this.important = important;
	}
	public Boolean getPerpetual() {
		if (perpetual == null){
			return false;
		}
		return perpetual;
	}
	public void setPerpetual(Boolean perpetual) {
		this.perpetual = perpetual;
	}
	public String getUrgentDegree() {
		return urgentDegree;
	}
	public void setUrgentDegree(String urgentDegree) {
		this.urgentDegree = urgentDegree;
	}
	public String getMailLabel() {
		return mailLabel;
	}
	public void setMailLabel(String mailLabel) {
		this.mailLabel = mailLabel;
	}
	public Integer getRecNumber() {
		if (recNumber == null){
			return 0;
		}
		return recNumber;
	}
	public void setRecNumber(Integer recNumber) {
		this.recNumber = recNumber;
	}
	public Boolean getReaded() {
		if (readed == null){
			return false;
		}
		return readed;
	}
	public void setReaded(Boolean readed) {
		this.readed = readed;
	}
	public Integer getReadNumber() {
		if (readNumber == null){
			return 0;
		}
		return readNumber;
	}
	public void setReadNumber(Integer readNumber) {
		this.readNumber = readNumber;
	}
	public Integer getReplyNumber() {
		if (replyNumber == null){
			return 0;
		}
		return replyNumber;
	}
	public void setReplyNumber(Integer replyNumber) {
		this.replyNumber = replyNumber;
	}
	public Integer getReplyFrequency() {
		if (replyFrequency == null){
			return 0;
		}
		return replyFrequency;
	}
	public void setReplyFrequency(Integer replyFrequency) {
		this.replyFrequency = replyFrequency;
	}
	public String getFromUser() {
		return fromUser;
	}
	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}
	public String getFromDept() {
		return fromDept;
	}
	public void setFromDept(String fromDept) {
		this.fromDept = fromDept;
	}
	public String getFromCid() {
		return fromCid;
	}
	public void setFromCid(String fromCid) {
		this.fromCid = fromCid;
	}
	public String getFromUserName() {
		return fromUserName;
	}
	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}
	public String getFromDeptName() {
		return fromDeptName;
	}
	public void setFromDeptName(String fromDeptName) {
		this.fromDeptName = fromDeptName;
	}
	public String getFromCidName() {
		return fromCidName;
	}
	public void setFromCidName(String fromCidName) {
		this.fromCidName = fromCidName;
	}
	public String getToUser() {
		return toUser;
	}
	public void setToUser(String toUser) {
		this.toUser = toUser;
	}
	public String getToUserName() {
		return toUserName;
	}
	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	public String getCcUser() {
		return ccUser;
	}
	public void setCcUser(String ccUser) {
		this.ccUser = ccUser;
	}
	public String getCcUserName() {
		return ccUserName;
	}
	public void setCcUserName(String ccUserName) {
		this.ccUserName = ccUserName;
	}
	public String getScUser() {
		return scUser;
	}
	public void setScUser(String scUser) {
		this.scUser = scUser;
	}
	public String getScUserName() {
		return scUserName;
	}
	public void setScUserName(String scUserName) {
		this.scUserName = scUserName;
	}
	public String getRecUser() {
		return recUser;
	}
	public void setRecUser(String recUser) {
		this.recUser = recUser;
	}
	public String getRecDept() {
		return recDept;
	}
	public void setRecDept(String recDept) {
		this.recDept = recDept;
	}
	public String getRecCid() {
		return recCid;
	}
	public void setRecCid(String recCid) {
		this.recCid = recCid;
	}
	public String getRecUserName() {
		return recUserName;
	}
	public void setRecUserName(String recUserName) {
		this.recUserName = recUserName;
	}
	public String getRecDeptName() {
		return recDeptName;
	}
	public void setRecDeptName(String recDeptName) {
		this.recDeptName = recDeptName;
	}
	public String getRecCidName() {
		return recCidName;
	}
	public void setRecCidName(String recCidName) {
		this.recCidName = recCidName;
	}
	public String getRecType() {
		return recType;
	}
	public void setRecType(String recType) {
		this.recType = recType;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public Date getReadTime() {
		return readTime;
	}
	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	public Date getDeletedTime() {
		return deletedTime;
	}
	public void setDeletedTime(Date deletedTime) {
		this.deletedTime = deletedTime;
	}
	public Date getDeletedSupTime() {
		return deletedSupTime;
	}
	public void setDeletedSupTime(Date deletedSupTime) {
		this.deletedSupTime = deletedSupTime;
	}
	public String getMailSubject() {
		return mailSubject;
	}
	public void setMailSubject(String mailSubject) {
		this.mailSubject = mailSubject;
	}
	public String getFileMark() {
		return fileMark;
	}
	public void setFileMark(String fileMark) {
		this.fileMark = fileMark;
	}
	public String getMailContent() {
		return mailContent;
	}
	public void setMailContent(String mailContent) {
		this.mailContent = mailContent;
	}
	public String getvHFilesDefault() {
		return vHFilesDefault;
	}
	public void setvHFilesDefault(String vHFilesDefault) {
		this.vHFilesDefault = vHFilesDefault;
	}
	
}
